//
//  CycleDetailViewController.m
//  VTravel
//
//  Created by lanouhn on 16/8/4.
//  Copyright © 2016年 xiaoYu. All rights reserved.
//

#import "CycleDetailViewController.h"

@interface CycleDetailViewController ()<UIWebViewDelegate>

/** webView */
@property (strong, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation CycleDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSURL *url = [NSURL URLWithString:self.link];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    dispatch_async(dispatch_get_main_queue(), ^{
        // 加载一个请求
        [self.webView loadRequest:request];
    });

    
//    [self.webView loadHTMLString:(nonnull NSString *) baseURL:(nullable NSURL *)]
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
